{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context -%}
{%- if not (data.page and data.page.published) or (data.piece and not data.piece.published) -%}
<div class="apos-context-menu">
  {{ dropdowns.base({
      label: "Unpublished",
      items: data.publishMenu
    }, 'button', { buttonType: 'global', attributes: 'apos--danger' })
  }}
</div>
{%- endif -%}
